import { defineStore } from 'pinia'

export interface Player {
  id: number
  nickname: string
  chips: number
  status: string
  cards: string[]
}

export interface GameState {
  communityCards: string[]
  players: Player[]
  pot: { main: number; side: number[] }
}

export const useGameStore = defineStore('game', {
  state: () => ({
    gameState: {
      communityCards: [],
      players: [],
      pot: { main: 0, side: [] },
    } as GameState,
  }),
  actions: {
    setGameState(state: GameState) {
      this.gameState = state
    },
  },
}) 